<?php

class Congress extends AppModel
{
    var $name = 'Congress';
    var $belongsTo = array('Theme');
    var $hasMany = 'Article';
    var $hasAndBelongsToMany = array(
        'Area' => array(
            'className' => 'Area',
            'joinTable' => 'areas_congresses',
            'foreignKey' => 'congress_id',
            'associationForeignKey' => 'area_id'
        ),
        'User' => array(
            'className' => 'User',
            'joinTable' => 'congresses_users',
            'foreinKey' => 'congress_id',
            'associationForeignKey' => 'user_id'
        )
    );

}

?>
